﻿using ClusteringProblem.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ClusteringProblem.Maths.QualityMeasures
{
    public class ComputedMeasure
    {
        private QualityMeasureStrategy qualityMeasureStrategy;
        private List<IAntType> result;
        private List<Model.Object> source;

        public void SetQualityMeasureStrategy(QualityMeasureStrategy qualityMeasureStrategy, List<IAntType> result, List<Model.Object> source)
        {
            this.qualityMeasureStrategy = qualityMeasureStrategy;
            this.source = source;
            this.result = result;
        }

        public double Compute()
        {
            return qualityMeasureStrategy.Compute(result, source);
        }        
    }
}
